Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fragments generator #41

Merged
merged 48 commits into from
Dec 18, 2024
Merged

feat: fragments generator #41

merged 48 commits into from
Dec 18, 2024

Conversation

Amiditin
Copy link
Member

@Amiditin Amiditin commented Dec 2, 2024

Resolves #40

@Amiditin Amiditin marked this pull request as ready for review December 16, 2024 07:13
@Amiditin Amiditin requested a review from Nelfimov December 16, 2024 07:14
Copy link
Member

@Nelfimov Nelfimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не хватает ридми с примером правильной структуры дизайна

.gitignore Outdated Show resolved Hide resolved
utils/file/package.json Show resolved Hide resolved
fragments/fragments-cli/package.json Show resolved Hide resolved
fragments/fragments-cli/package.json Outdated Show resolved Hide resolved
fragments/fragments-cli/src/run.ts Outdated Show resolved Hide resolved
fragments/fragments-cli/src/index.ts Outdated Show resolved Hide resolved
fragments/fragments-cli/src/index.ts Outdated Show resolved Hide resolved
fragments/fragments-generator/package.json Show resolved Hide resolved
@Amiditin Amiditin requested a review from Nelfimov December 16, 2024 14:59
README.md Show resolved Hide resolved
fragments/fragments-cli/package.json Show resolved Hide resolved
fragments/fragments-cli/src/index.ts Show resolved Hide resolved
@Amiditin Amiditin changed the title Feat/fragments generator feat: fragments generator Dec 17, 2024
@Nelfimov
Copy link
Member

Дополнительным ПРом к этому сделай пожалуйста бамп yarn бандла

@Amiditin Amiditin requested a review from Nelfimov December 18, 2024 00:27
@Nelfimov Nelfimov merged commit bed9050 into master Dec 18, 2024
6 checks passed
@Nelfimov Nelfimov deleted the feat/fragments-generator branch December 18, 2024 05:07
@Amiditin Amiditin mentioned this pull request Dec 18, 2024
Amiditin added a commit that referenced this pull request Jan 13, 2025
* feat: add base fragments-cli

* feat: add base fragments-generator

* feat: add load-node method to figma-file-loader

* feat: add theme option to generate fragments command

* feat: add process-file theme path

* feat: add get-value-key-from-theme to fragments-generator strategy

* feat: add component wrapper fro fragments

* feat: add create wrapper element for array text elements

* feat: add figma file-utils with process and write file utils

destructure fragments-cli run util

* refactor: parse node-id in load-node method

* feat: add create dynamic fragments tree to fragments generator

* refactor: destructure create-fragment strategy

* feat: add dynamic imports when creating component

* feat: add theme-mapping strategy

* feat: add create-text strategy

* feat: add create-box strategy

* refactor: move getting attributes to theme-mapping strategy

* feat: add to-px-string util

* refactor: move getting box attributes to theme-mapping strategy

* feat: add get-border-radius to theme-mapping strategy

* feat: add get-border to theme-mapping strategy

* feat: add get-shadow to theme-mapping strategy

* feat: add background attribute to create box element

* feat: add width and height attributes to create-box-element

* feat: add id attribute to formatted-message element

* feat: add text-align attribute to create-text-element

* feat: add create-button strategy

* feat: add base create-input strategy

* feat: add create-input strategy to create-fragment

* feat: add theme-mapping strategy test

* feat: add create-box strategy test

* feat: add create-text strategy test

* feat: add create-button strategy test

* feat: add create-input strategy test

* feat: add is-instance to figma utils

* feat: add question to get figma access token to figma-cli

* fix: eslint validation

* chore: add yarn sdks

* chore: add exports to package json files

* chore: remove generate-fragments script

* refactor: use import from node

* refactor: use pino logger instead of npmlog

* feat: add name option to generate fragment

* refactor: change fragment generator strategies folder structure and file names

* docs: add fragments-generator to readme

* chore: remove exports from packages

* feat: add display-name prop to create-component result

* feat: add options to pino logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Генератор фрагментов
2 participants